 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Laba_5_TP
{
    public class DivisionCalculator
    {
        public int CalculateTotalPrice(Division division)
        {
            int totalPrice = 0;
            List<AbstractWeapon> weapons = division.Weapons;
            for (int i = 0; i < weapons.Count; i++)
            {
                totalPrice += weapons[i].Price;
                //комментарий
            }
            return totalPrice;
        }
    }
}
